/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.beans;

import java.util.Comparator;

/**
 *
 * @author egberto
 */
public class ComparadorClienteQtdPedidos implements Comparator {

    @Override
    public int compare(Object o1, Object o2) {
        Cliente cl1 = (Cliente) o1;
        Cliente cl2 = (Cliente) o2;
        return cl1.getQtdPedidos() - cl2.getQtdPedidos();
    }
    
    
}
